package com.runen.wnhz.runen.service;

import com.runen.wnhz.runen.data.entity.BaseEntity;
import com.runen.wnhz.runen.data.entity.CatalogListEntity;
import com.runen.wnhz.runen.data.entity.LessonIntroductionEntity;
import com.runen.wnhz.runen.data.entity.LessonListEntity;
import com.runen.wnhz.runen.data.entity.LessonTypeBean;
import com.runen.wnhz.runen.data.entity.TestListEntity;

import java.util.List;
import java.util.Map;

import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by Administrator on 2018/5/4 0004.
 *
 * 大讲堂页面api
 */

public interface MajorApi {
    /**
     * 数据课程类型列表
     */
    @POST("Lesson_formType")
    @FormUrlEncoded
    Observable<BaseEntity<List<LessonTypeBean>>> getLessonFromType(@FieldMap Map<String, String> params);


    /**
     * 获取课程列表
     */
    @POST("Lesson_formList")
    @FormUrlEncoded
    Observable<BaseEntity<LessonListEntity>> getLessonList(@FieldMap Map<String, Integer> params);

    /**
     * 获取课程简介
     */
    @POST("Lesson_formIntroduction")
    @FormUrlEncoded
    Observable<BaseEntity<LessonIntroductionEntity>> getLessonIntroduction(@FieldMap Map<String, String> params);

    /**
     * 获取课程考试列表
     */
    @POST("Test_getLessonTest")
    @FormUrlEncoded
    Observable<BaseEntity<TestListEntity>> getLessonTest(@FieldMap Map<String, String> params);

    /**
     * 获取课程考试列表
     */
    @POST("Lesson_formThreadList")
    @FormUrlEncoded
    Observable<BaseEntity<List<CatalogListEntity>>> getCatalog(@FieldMap Map<String, String> params);
}
